package com.dxy.df.modules.service;

import com.dxy.df.modules.bean.entity.DfArticleEntity;
import com.dxy.df.modules.bean.vo.DfArticleVo;
import com.dxy.df.modules.bean.query.DfArticleQuery;
import com.dxy.df.modules.bean.put.DfArticlePut;

import java.util.List;
import java.util.Map;

/**
 * @author biz@dxy.cn
 * @describe 文章表
 * @date 2019-10-25 16:23:46
 */
public interface DfArticleService {
	
	DfArticleEntity queryObject(DfArticleQuery query);
	
	List<DfArticleVo> queryList(DfArticleQuery query);
	
	int queryTotal(DfArticleQuery query);
	
	void save(DfArticlePut dfArticle);
	
	void update(DfArticlePut dfArticle);
	
	void delete(Integer id);

    int deleteBatch(Integer[] ids);

	List<DfArticleVo> selectNoCommentArticle();

	void updateCount(Integer id);

	DfArticleVo queryDetail(Integer id);

	Integer queryCommentCount(Integer id);

	Integer queryLikeCount(Integer id);

	List<DfArticleVo> selectTop();

	List<DfArticleVo> esSearch(String value);

}
